package com.nidu.demo.log.dto;

import com.nidu.demo.base.BasePageQry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 登录日志分页查询
 *
 * @author auto
 */
@Data
@Schema(description = "登录日志分页查询")
@EqualsAndHashCode(callSuper = true)
public class LoginLogPageQry extends BasePageQry {

    @Schema(description = "日志类型", example = "1")
    private Integer loginType;

    @Schema(description = "链路追踪编号", example = "trace_123456")
    private String traceId;

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "用户账号", example = "admin")
    private String username;

    @Schema(description = "登陆结果", example = "1")
    private Boolean result;

    @Schema(description = "用户 IP", example = "192.168.1.1")
    private String userIp;

}
